.hide {
  height: 0 !important;
  overflow: hidden !important;
  display: none;
}
.layer {
  min-height: 100vh;
  position: relative;
}

.layer .tab {
  background-color: #fff;
  position: fixed;
  bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom); /* 兼容 iOS < 11.2 */
  padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS >= 11.2 */
  left: 0;
  right: 0;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.layer .tab .item {
  height: 1rem;
  justify-content: center;
  min-width: 5em;
  text-align: center;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  align-items: center;
  font-size: 0.22rem;
  color: #999;
}

.layer .tab .item .icon {
  width: 0.38rem;
  height: 0.38rem;
}
.layer .tab .item .name {
  padding-top: 0.1rem;
}
.layer .tab .activited {
  color: #1677ff;
}
